-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard fixes #11586
Keyboard fixes #11586
Conversation
7baa270
to
2490c87
Compare
0613f8e
to
082d234
Compare
src/components/datetime/datetime.ts
Outdated
@@ -259,6 +259,7 @@ import { dateValueRange, renderDateTime, renderTextFormat, convertDataToISO, con | |||
'ion-button="item-cover" ' + | |||
'[attr.aria-labelledby]="_labelId" ' + | |||
'[attr.aria-disabled]="_disabled" ' + | |||
'(click)="_click($event)" ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
src/components/input/input.scss
Outdated
@@ -119,7 +87,6 @@ input.text-input:-webkit-autofill { | |||
pointer-events: auto; | |||
} | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
src/components/item/item-sliding.ts
Outdated
@@ -346,6 +346,7 @@ export class ItemSliding { | |||
} | |||
if (openAmount === 0) { | |||
this._tmr = platform.timeout(() => { | |||
// change in the code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
src/components/radio/radio-button.ts
Outdated
@@ -134,6 +134,8 @@ export class RadioButton extends Ion implements IonicTapInput, OnDestroy, OnInit | |||
} | |||
} | |||
|
|||
initFocus() { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
@@ -206,10 +206,6 @@ export class Select extends BaseInput<any> implements OnDestroy { | |||
|
|||
@HostListener('click', ['$event']) | |||
_click(ev: UIEvent) { | |||
if (ev.detail === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review, ask @adamdbradley
src/util/base-input.ts
Outdated
/** | ||
* @hidden | ||
*/ | ||
focusNext() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is focusNext() used? need to review it
how does it interact between input, toggle, checkbox (look at items/inputs)
src/util/form.ts
Outdated
const inputs = this._inputs; | ||
let index = this._inputs.indexOf(currentInput) + 1; | ||
if (index > 0 && index < inputs.length) { | ||
let nextInput = inputs[index]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add unit tests! make sure I didn't break anything
@@ -68,6 +68,20 @@ export class ScrollView { | |||
this._eventsEnabled = true; | |||
} | |||
|
|||
setScrolling(isScrolling: boolean, ev: ScrollEvent) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review with @adamdbradley (explain use case)
add support for JS-scrolling? maybe not needed
add new unit tests
src/components/input/input.ts
Outdated
'<textarea #textInput *ngIf="_isTextarea" class="text-input" ' + | ||
'[(ngModel)]="value" ' + | ||
'(blur)="onBlur()" ' + | ||
'(focus)="onFocus()" ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could use non-zoned focusin/focusout programatically!!
this._usePadding = config.getBoolean('scrollPadding', this._useAssist); | ||
|
||
if (elementRef.nativeElement.tagName === 'ION-TEXTAREA') { | ||
this._type = TEXTAREA; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure type has the correct value.
add unit test
src/components/datetime/datetime.ts
Outdated
_click(ev: UIEvent) { | ||
// do not continue if the click event came from a form submit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review, ask @adamdbradley
src/util/base-input.ts
Outdated
this._isFocus = true; | ||
console.debug('BaseInput: focused:', this); | ||
this._form && this._form.setAsFocused(this); | ||
this._inputFocusChanged(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might not need _inputFocusChanged
d22d927
to
257bbb7
Compare
Hi @manucorporat, do you think this PR can fix #11745 ? |
f844f6c
to
078dc62
Compare
7928f65
to
574ee31
Compare
fixes ionic-team#9699 fixes ionic-team#11484 fixes ionic-team#11389 fixes ionic-team#11325 fixes ionic-team#11291 fixes ionic-team#10828 fixes ionic-team#11291 fixes ionic-team#10393 fixes ionic-team#10257 fixes ionic-team#9434 fixes ionic-team#8933 fixes ionic-team#7178 fixes ionic-team#7047 fixes ionic-team#10552 fixes ionic-team#10393 fixes ionic-team#10183 fixes ionic-team#10187 fixes ionic-team#10852 fixes ionic-team#11578
574ee31
to
c10f72b
Compare
DO NOT MERGE
fixes #7047
fixes #9699
fixes #11566
fixes #11484
fixes #11389
fixes #11325
fixes #11291
fixes #11251 ?
fixes #10552
fixes #10393
fixes #10183
fixes #10187